package com.lemon.components.wechart.order.media;

import java.io.InputStream;

import com.lemon.components.common.order.ValidateOrderBase;
import com.lemon.components.wechart.enums.MediaTypeEnum;

public class UploadMediaOrder extends ValidateOrderBase {

	private static final long serialVersionUID = 3292078554703019329L;
	private String accessToken;
	private MediaTypeEnum type;
	private String media;
	private InputStream inputStream;
	
	@Override
	public void check() {
		validateHasText(accessToken, "accessToken");
		validateNotNull(type, "type");
		validateNotNull(media, "media");
		validateNotNull(inputStream, "inputStream");
	}
	
	public String getAccessToken() {
		return accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	public MediaTypeEnum getType() {
		return type;
	}
	public void setType(MediaTypeEnum type) {
		this.type = type;
	}
	public String getMedia() {
		return media;
	}
	public void setMedia(String media) {
		this.media = media;
	}
	@Override
	public String toString() {
		return "UploadOrder [accessToken=" + accessToken + ", type=" + type + ", media=" + media + ", inputStream=" + inputStream + "]";
	}

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}
}
